package com.example.demo.model.entity.achievement;

import com.example.demo.model.enums.ProjectStatusEnum;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class HorizontalProject {

    private Long id;
    private String projectName;
    private String contractNumber;
    private Double totalAmount;
    private String clientOrganization;
    private String principalInvestigator;
    private String executiveLeader;
    private LocalDate startDate;
    private LocalDate endDate;
    private String paymentRecords; // JSON格式: [{"date":"2023-01-01","amount":30.00,"voucher":"path/to/file"}]
    private String participants; // JSON格式: [{"userId":1,"name":"李四","role":"开发"}]
    private String financialAccount;
    private String paymentVoucher;
    private LocalDate completionTime;
    private String completionCertificate;
    private String finalReport;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private ProjectStatusEnum status;
    private Long submitUserId;

    public HorizontalProject() {
        this.createTime = LocalDateTime.now();
        this.updateTime = LocalDateTime.now();
    }
}